﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Utility; 

namespace MsgCenter.Web.Pages.DeptManage
{
    public partial class Index : BaseUI.BasePage
    {
        protected string strRequestID = ParamsOfRequest.Request("ModuleID");
        protected void Page_Load(object sender, EventArgs e)
        {
            //Dictionary<string, List<Sys_Operate>> DicList = base.UserSessionInfo.UserOperate;
            //List<Sys_Operate> list = DicList[strRequestID];
            //if (list != null && list.Count > 0)
            //{
            //    abtnAdd.Visible = abtnDelete.Visible = abtnEdit.Visible = abtnSort.Visible = false;
            //    foreach (Sys_Operate model in list)
            //    {
            //        switch (model.OperateValue)
            //        {
            //            case "btnAdd":
            //                abtnAdd.Visible = true;
            //                break;
            //            case "btnDelete":
            //                abtnDelete.Visible = true;
            //                break;
            //            case "btnEdit":
            //                abtnEdit.Visible = true;
            //                break;
            //            case "btnSort":
            //                abtnSort.Visible = true;
            //                break;
            //        }
            //    }
            //}
            //else
            //{
            //    abtnAdd.Visible = abtnDelete.Visible = abtnEdit.Visible = abtnSort.Visible = false;
            //}
        }
    }
}